function weight = dw_la(pr,delta)
% This function calculates the decision weight for a given cumulative
% probability, pr. pr can be a vector.

weight = pr.^delta./((pr.^delta+(1-pr).^delta).^(1/delta));

